home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / mg2a_src.zip / SYS / AMIGA / SYSDEF.H < prev    next >
C/C++ Source or Header  |  1988-08-23  |  2KB  |  57 lines

  1. /*
  2.  * Name:    MicroEMACS
  3.  * Version:    MG 2a
  4.  *        Commodore Amiga system header file.
  5.  */
  6.  
  7. /* Neither can lattice 4 */
  8. extern char *offset_dummy;        /* Manx 3.2 can't handle 0->    */
  9. #define OFFSET(type,member) \
  10.  ((char *)&(((type *)offset_dummy)->member)-(char *)((type *)offset_dummy))
  11.  
  12. #ifdef    MANX
  13. #define    PCC    0            /* "[]" works.            */
  14. #else
  15. #define    PCC    1            /* "[]" does not work.        */
  16. #endif
  17.  
  18. #define    VARARGS
  19. #define    DPROMPT                /* we always want delayed prompts */
  20. #define    KBLOCK    4096            /* Kill grow.            */
  21. #define    GOOD    0            /* Good exit status.        */
  22. #define    SYSINIT    sysinit()        /* System-specific initialization */
  23. #define SYSCLEANUP syscleanup()        /* System-specific cleanup    */
  24. #define MALLOCROUND(m)    (m+=7,m&=~7)    /* Round up to 8 byte boundary    */
  25. #define NULL    ((char *) 0)        /* These are crass, but        */ 
  26. #define    EOF    -1            /* will work`            */
  27.  
  28. /*
  29.  * Macros used by the buffer name making code.
  30.  * Start at the end of the file name, scan to the left
  31.  * until BDC1 (or BDC2, if defined) is reached. The buffer
  32.  * name starts just to the right of that location, and
  33.  * stops at end of string (or at the next BDC3 character,
  34.  * if defined). BDC2 and BDC3 are mainly for VMS.
  35.  */
  36. #define    BDC1    ':'            /* Buffer names.        */
  37. #define    BDC2    '/'
  38.  
  39.  
  40. /*
  41.  * Typedefs for internal key type and how big a region can be.
  42.  */
  43.  
  44. typedef short    KCHAR;    /* type used to represent Emacs characters */
  45. typedef    long    RSIZE;    /* size of a region    */
  46.  
  47. #define    MAXPATH    128    /* longest expected directory path    */
  48.  
  49. #define    bcopy(src,dest,len) movmem(src,dest,len)
  50.  
  51. #define fncmp Strcmp
  52.  
  53. #ifndef NO_DIRED
  54. #define rename(s1,s2) (Rename(s1,s2) == -1 ? 0 : -1)
  55. #define unlinkdir(s1) (DeleteFile(s1) == -1 ? 0 : -1)
  56. #endif
  57.